﻿@{
    ViewBag.Title = "Modificar";
    ViewBag.ModuleName = "Aulas";
    W.Models.DataAccess.Aulas Entity = (W.Models.DataAccess.Aulas)ViewBag.Entity;
}
<h2>Modificar</h2>
<div class="widget_inside">
    <div class="form">
        <form action="@Url.Action("edit")" method="post">
        <div class="clearfix">
            <label>
                Nombre
            </label>
            <div class="input">
                <input name="nombre" type="text" required="required" value="@Entity.nombre" />
            </div>
        </div>
        <input type="hidden" name="id" value="@Entity.id" />
        <div class="clearfix">
            <label>
                Aula
            </label>
            <div class="input">
                <select name="idAula">
                    @foreach (var item in (List<W.Models.DataAccess.Aulas>)ViewBag.Aulas)
                    {
                        <option value="@item.id">@item.nombre</option>
                    }
                </select>
            </div>
        </div>
        <div class="clearfix">
            <label>
                Estado de Recurso
            </label>
            <div class="input">
                <select name="idEstadosRecurso">
                    @foreach (var item in (List<W.Models.DataAccess.EstadosRecurso>)ViewBag.EstadosRecursos)
                    {
                        <option value="@item.id">@item.nombre</option>   
                    }
                </select>
            </div>
        </div>
        <div class="clearfix grey-highlight">
            <div class="input no-label">
                <button type="submit" class="button green">
                    Guardar</button>
                <a href="@Url.Action("index")" class="button">Regresar a la Lista</a>
            </div>
        </div>
        </form>
    </div>
</div>
